package uk.gov.swmprobation.swm;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.view.Window;

public class SWM extends Activity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);
        setContentView(R.layout.activity_swm);
        getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.title_bar);
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_swm, menu);
        return true;
    }
    
    public void openMission(View view) {
    	Intent intent = new Intent(this, Mission.class);
    	startActivity(intent);
    }
    
    public void openSites(View view) {
    	Intent intent = new Intent(this, Sites.class);
    	startActivity(intent);
    }
    
    public void openDocs(View view) {
    	Intent intent = new Intent(this, Documents.class);
    	startActivity(intent);
    }
    
    public void openNews(View view) {
    	Intent intent = new Intent(this, News.class);
    	startActivity(intent);
    }
    public void openAbout(View view) {
    	Intent intent = new Intent(this, About.class);
    	startActivity(intent);
    }
}
